package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 仓库表
 * </p>
 *
 * @author WEN
 * @since 2024-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjStore对象", description="仓库表")
public class ZjStore implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "是否外部仓库：0-内部仓库，1-外部仓库")
    @TableField("is_out_store")
    private Boolean outStore;

    @ApiModelProperty(value = "外部仓库类型：1-网点仓库，2-工程师仓库，当is_out_store=1时生效")
    private Integer outStoreType;

    @ApiModelProperty(value = "关联ID，当is_out_store=1时生效，关联网点或工程师/网点人员ID")
    private Long relationId;

    @ApiModelProperty(value = "是否允许负库存：0-否，1-是")
    @TableField("is_can_negative_stock")
    private Boolean canNegativeStock;

    @ApiModelProperty(value = "仓库编码")
    private String code;

    @ApiModelProperty(value = "仓库名称")
    private String name;

    @ApiModelProperty(value = "是否启用仓位：0-否，1-是")
    @TableField("is_enable_store_position")
    private Boolean enableStorePosition;

    @ApiModelProperty(value = "联系人")
    private String userName;

    @ApiModelProperty(value = "联系人手机号")
    private String userPhone;

    @ApiModelProperty(value = "其他联系方式")
    private String otherPhone;

    @ApiModelProperty(value = "是否禁用：0-否，1-是")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "仓库地址-省")
    private String province;

    @ApiModelProperty(value = "仓库地址-市")
    private String city;

    @ApiModelProperty(value = "仓库地址-县/区")
    private String area;

    @ApiModelProperty(value = "仓库地址-镇 ")
    private String town;

    @ApiModelProperty(value = "仓库地址-详情地址")
    private String address;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
